package com.mobisys.live.dao.mapper;

import com.mobisys.live.bean.usergroup.FilterConditionBean;
import com.mobisys.live.dao.model.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserMapper {
    int deleteByPrimaryKey(String id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    User selectByUserName(String userName);

    //根据不同的筛选条件获取用户列表
    List<User> selectUsersByCondition(@Param("filterConditionBean") FilterConditionBean filterConditionBean);
    //模糊查询
    List<User> selectByUserNameLike(String userName);

    List<User> selectByUNickNameLike(String nickName);
    //关联user和个人认证表
    int updateByUsername(String username,String id);
}